package com.ymttest.common.enums;

/**
 * 退货方式
 */
public enum ProductRefundChannelEnum {
	/**
	 * 不需要
	 */
	None(0),

	/**
	 * 官方1
	 */
	Official(1),
	/**
	 * 卖家2
	 */
	Seller(2);


	private int intValue;
	private static java.util.HashMap<Integer, ProductRefundChannelEnum> mappings;

	private synchronized static java.util.HashMap<Integer, ProductRefundChannelEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, ProductRefundChannelEnum>();
		}
		return mappings;
	}

	private ProductRefundChannelEnum(int value) {
		intValue = value;
		ProductRefundChannelEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static ProductRefundChannelEnum forValue(int value) {
		return getMappings().get(value);
	}
}